package cn.com.connected.entity;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;

/**
 * 公告
 * 
 * @author sms
 * @email sms@live.com
 * @date 2022-10-31 14:09:14
 */
@TableName(value = "sys_public")
@Data
@ApiModel(description = "公告")
public class SysPublicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID)
    @TableField(value = "`id`")
    @ApiModelProperty(value = "")
    private String id;


    @TableField(value = "`school_id`")
    @ApiModelProperty(value = "学校 ID 如果为空则为全部发放")
    private String schoolId;


    @TableField(value = "`title`")
    @ApiModelProperty(value = "标题")
    private String title;


    @TableField(value = "`content`")
    @ApiModelProperty(value = "内容")
    private String content;


    @TableField(value = "`page`")
    @ApiModelProperty(value = "跳转页面")
    private String page;


    @TableField(value = "`rel_id`")
    @ApiModelProperty(value = "关联ID")
    private String relId;


    @TableField(value = "`public_type`")
    @ApiModelProperty(value = "消息类型 dict: publicType")
    private Integer publicType;


    @TableField(value = "`sort`")
    @ApiModelProperty(value = "排序 默认为0")
    private Integer sort;


    @TableField(value = "`create_time`")
    @ApiModelProperty(value = "")
    private Date createTime;


    @TableField(value = "`status`")
    @ApiModelProperty(value = "")
    private Integer status;
}